<?php
namespace app\index\controller;
use \think\Controller;
class Index extends Controller
{
   public function index(){
		if(request()->isAjax()){
			if(!captcha_check(input("post.captcha"))){
				return $this->error("验证失败");
				
			}else{
				return $this->success("验证成功");				
			}
		}
		 return $this->fetch();
	}	
    public function login(){
    	 return $this->fetch();

	}
}
